<?php
namespace app\admin\validate;

use think\Validate;

class Integral extends Validate
{
    protected $rule = [
        'userIntegral'         => 'require|number|max:10'
    ];

    protected $message = [
        'userIntegral.require'         => '请输入积分',
        'userIntegral.number'          => '积分必须为数字',
        'userIntegral.max'          => '积分最多不能超过5个字符'
    ];
}